package flc.ast.bean;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

//一张表
@Entity
public class OvertimeBean {
    //主键唯一，自动增长
    @PrimaryKey(autoGenerate = true)
    private int id;

    private long date;
    private String name;
    private double hour;
    private double duration;
    private double income;
    private boolean isLeave;

    public OvertimeBean(long date, String name, double hour, double duration, double income, boolean isLeave) {
        this.date = date;
        this.name = name;
        this.hour = hour;
        this.duration = duration;
        this.income = income;
        this.isLeave = isLeave;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getDate() {
        return date;
    }

    public void setDate(long date) {
        this.date = date;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getHour() {
        return hour;
    }

    public void setHour(double hour) {
        this.hour = hour;
    }

    public double getDuration() {
        return duration;
    }

    public void setDuration(double duration) {
        this.duration = duration;
    }

    public double getIncome() {
        return income;
    }

    public void setIncome(double income) {
        this.income = income;
    }

    public boolean isLeave() {
        return isLeave;
    }

    public void setLeave(boolean leave) {
        isLeave = leave;
    }
}
